package com.robinmouren;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Robinmouren
 */
@SpringBootApplication
@Slf4j
@ServletComponentScan
@EnableTransactionManagement
// aop解决service层的注释
// @EnableAspectJAutoProxy(proxyTargetClass = true,exposeProxy = true)
public class App {
    public static void main( String[] args ){
        SpringApplication.run(App.class,args);
        log.info("server start... 项目已启动");
    }
}
